package com.awesome.spring.service;

import com.awesome.spring.bean.Order;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * OrderService
 *
 * @author alex wu
 * @date 2023/10/23
 */
public interface OrderService extends IService<Order> {

    boolean create(String orderCode, String userId, int money, int count, boolean rollback);

    boolean compensateCreate(String orderCode, String userId, int money);
}
